class CreatePersonToLocationRelations < ActiveRecord::Migration
  def change
    create_table :person_to_location_relations do |t|
      t.references :person
      t.references :location

      t.timestamps
    end
    add_index :person_to_location_relations, :person_id
    add_index :person_to_location_relations, :location_id
  end
end
